<template>
	<view >
		<view class="list" v-for="(item,index) in JobData" :key="index"
			@click="$u.route('/pagesIndex/indexmain/indexmain',{id:item.id})">

			<view style="display: flex;justify-content: flex-start;">
				<u-image v-if="item.images" width="180rpx" height="180rpx" :src="item.images[0]"></u-image>

				<view class="right">
					<view class="flexspe">

						<text class="title">{{item.title}}</text>
						<!-- <text class="price" v-if="item.is_face=='0'">{{item.salary_min}}-{{item.salary_max}}元/月</text> -->
						<!-- <text class="price" v-else>面议</text> -->
					</view>
					<view class="flexspe">
						<view class="list-tag1">
							<text>{{item.desc}}</text>
						</view>
					</view>

				</view>

			</view>
			<view class="bot">
				<view class="address">
					<!-- <u-icon name="time" color="#999999" size="28"></u-icon> -->
					<text>{{item.create_time}}</text>
				</view>
				<view class="btn">
					<text>{{item.contact_name||''}}</text>
					<!-- <text>申请</text> -->
				</view>
			</view>
		</view>
	
	</view>
</template>

<script>
	export default {
		name: "JobList",
		props: {
			JobData: {
				type: Array,
				default: []
			}
		},
		data() {
			return {

			};
		},
		onLoad() {
			console.log(1111111, this.JobData)
		}
	}
</script>

<style lang="scss" scoped>

	.list {
		display: flex;
		flex-direction: column;
		padding: 20rpx;
		background-color: white;
		margin-bottom: 30rpx;


		.flexspe {
			display: flex;
			flex-direction: row;
			align-items: center;
			justify-content: space-between;
		}

		.right {
			margin-left: 020rpx;
		}

		.title {
			font-size: 32rpx;
			color: #333333;
			font-weight: bold;

			flex: 1;
			word-break: break-all;
			overflow: hidden;
			display: -webkit-box;
			-webkit-box-orient: vertical;
			/* 必需 */
			-webkit-line-clamp: 2;
			text-overflow: ellipsis;
			/* 防止意外显示全内容 */
			-webkit-box-orient: vertical;
			width: calc(100vw-200rpx);
			/* 设置文本不换行 */
			/* 超出部分显示省略号 */
			text-overflow: ellipsis;
		}

		.list-tag1 {
			display: -webkit-box;
			/* 必需 */
			-webkit-box-orient: vertical;
			/* 必需 */
			overflow: hidden;
			/* 必需 */
			text-overflow: ellipsis;
			/* 防止意外显示全内容 */
			-webkit-line-clamp: 2;
			/* 设置需要显示的行数 */
			color: #999999;
			font-size: 28rpx;
			margin-top: 20rpx;
		}

		.list-tag {
			display: flex;
			flex-direction: row;
			align-items: center;
			flex-wrap: wrap;
			color: #999999;
			font-size: 28rpx;
			margin-top: 20rpx;
			display: -webkit-box;
			-webkit-box-orient: vertical;
			overflow: hidden;
			text-overflow: ellipsis;
			-webkit-line-clamp: 2;

			/* 控制显示行数 */
			.tag {
				font-size: 22rpx;
				background-color: #f8f8f8;
				padding: 5rpx 15rpx;
				border-radius: 5rpx;
				margin-right: 15rpx;
			}
		}

		.price {
			color: #ff2d45;
			font-weight: bold;
		}

		.bot {
			border-top: 1rpx solid #e6e6e6;
			margin-top: 20rpx;
			display: flex;
			flex-direction: row;
			align-items: center;
			justify-content: space-between;
			padding-top: 20rpx;
			color: #999999;
			font-size: 28rpx;

			.address {
				flex: 1;
				margin-right: 20rpx;
			}

			.btn {
				padding: 5rpx 20rpx;
				font-size: 32rpx;
				color: #40c6bf;
				background-color: #ebf9f8;
				border-radius: 5rpx;
			}
		}
	}
</style>